<?php echo form_open_multipart('', 'class="form-horizontal" role="form"');?>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">First Name <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_input('fname', set_value('fname', $row[field('fname')]), 'autocomplete="off" class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('fname', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Last Name <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_input('lname', set_value('lname', $row[field('lname')]), 'autocomplete="off" class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('lname', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Username <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_input('username', set_value('username', $row[field('username')]), 'disabled autocomplete="off" class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('username', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Email <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_input('email', set_value('email', $row[field('email')]), 'autocomplete="off" class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('email', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Phone</label>
        <div class="col-sm-9">
            <?php echo form_input('phone', set_value('phone', $row[field('phone')]), 'autocomplete="off" class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('phone', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Role <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_dropdown('role', $role, set_value('role', $row[field('roleId')]), 'class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('role', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Photo</label>
        <div class="col-sm-9">
            <div class="ace-file-input col-xs-10 col-sm-5 no-padding" style="margin-bottom: 0;">
                <input type="file" id="input-file-image" name="image" />
            </div>
        </div>
    </div>
    <?php if($row[field('id')] != 1): ?>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Disable</label>
        <div class="col-sm-9">
            <label>
                <input name="disable" class="ace ace-switch" type="checkbox" />
                <?php echo form_checkbox('disable', '1', set_value('disable', $row[field('isDisable')]), 'class="ace ace-switch"'); ?>
                <span class="lbl"></span>
            </label>
            <?php echo form_error('disable', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <?php endif; ?>
    <div class="space-4"></div>
    <div class="clearfix form-actions">
        <div class="col-md-offset-3 col-md-9">
            <button name="btnSave" class="btn btn-info" type="submit">
                <i class="icon-ok bigger-110"></i>Save
            </button>
        </div>
    </div>
<?php echo form_close();?>